<h1>B&uacute;squeda avanzada</h1>

<div id="hits"></div>

<div id="adv_search_form">
<% form_remote_tag :update => :hits, :url => { :action => :live_search },
	:before=>%(Element.show("loadin");Element.hide("hits")),
	:success=>%(Element.hide("loadin")),
	:complete=>visual_effect(:appear, "hits") do %>
	<div id="por_datos">
		<div style="float:left"><label for="nombres">Nombres</label><br/>
		<%=  text_field_tag :nombres  %> </div>
		
		<div style="float:left"><label for="apellidos">Apellidos</label><br/>
		<%=  text_field_tag :apellidos  %> </div>
		
		<div style="float:left"><label for="mail">Mail</label><br/>
		<%=  text_field_tag :mail  %> </div>
		
		<div style="float:left"><label for="profesion">Profesi&oacute;n</label><br/>
		<%= text_field_tag :profesion %> </div>
		<div id="submitdiv">
		<%=  submit_tag 'Buscar' %></div>
		<div style="float:left">
		<%=  image_tag 'loading.gif', :id=>"loadin", :style=>'display:none' %></div>
	</div>
<% end %>
</div>